home *** CD-ROM | disk | FTP | other *** search
/ Practical Web Pages 2004 September / PracticalWebPages-WPG13-09-2004-Coverdisc.iso / pc / Software / Toolkit / Sothink SWF Quicker 1.5 / data1.cab / Public_Files / Classes / Global.as < prev    next >
Encoding:
Text File  |  2004-06-14  |  8.1 KB  |  59 lines

  1. class Global
  2. {
  3.     var Math:Math                                                        // Math class
  4.     var System:System                                                    // System class
  5.     var Date:Date                                                        // Date class
  6.     var _root:MovieClip                                                  // Specifies or returns a reference to the root movie Timeline. If a movie has multiple levels, the root movie Timeline is on the level containing the currently executing script. For example, if a script in level 1 evaluates _root , _level1 is returned.
  7.     var _level:MovieClip                                                 // It is a reference to the root Timeline of _level N . 
  8.     var _global:Object                                                   // Creates global variables, objects, or classes.
  9.  
  10.     function trace()                                                     // Evaluates the expression and displays the result in the Output panel in test mode.
  11.     function loadVariables(url, target, variables)                       // Reads data from an external file and sets the values for variables in a target movie clip.
  12.     function loadVariablesNum(url, level, variables)                     // Reads data from an external file and sets the values for variables in a Flash Player level.
  13.     function mbchr(number)                                               // Converts an ASCII code number to a multibyte character.
  14.     function mblength(string)                                            // Returns the length of the multibyte character string.
  15.     function mbord(character)                                            // Converts the specified character to a multibyte number.
  16.     function mbsubstring(value, index, count)                            // Extracts a new multibyte character string from a multibyte character string.
  17.     function MMExcuse(Flash JavaScript API command)                      // Lets you issue Flash JavaScript API commands from ActionScript.
  18.     function Number(expression)                                          // Converts the parameter expression to a number and returns a value.
  19.     function Object(value)                                               // Creates a new, empty object or converts the specified number, string, or Boolean value to an object.
  20.     function ord(character)                                              // Converts characters to ASCII code numbers.
  21.     function parseFloat(string)                                          // Converts a string to a floating-point number.
  22.     function parseInt(expression, radix)                                 // Converts a string to an integer.
  23.     function print(target, Bounding box)                                 // Prints the target movie clip according to the boundaries specified in the parameter (bmovie, bmax, or bframe).
  24.     function printAsBitmap(target, Bounding box)                         // Prints the target movie clip as a bitmap according to the boundaries specified in the parameter (bmovie, bmax, or bframe).
  25.     function printAsBitmapNum(level, Bounding box)                       // Prints a level in Flash Player as a bitmap according to the boundaries specified in the parameter (bmovie, bmax, or bframe).
  26.     function printNum(level, Bounding box)                               // Prints the level in Flash Player according to the boundaries specified in the Bounding box parameter ("bmovie", "bmax", "bframe").
  27.     function random(value)                                               // Returns a random integer between 0 and one less than the integer specified in the value parameter.
  28.     function removeMovieClip(target)                                     // Deletes the specified movie clip.
  29.     function setInterval(functionName, interval, param)                  // Calls a function or a method or an object at periodic intervals while a SWF file plays.
  30.     function setProperty(target, property, value, expression)            // Changes a property value of a movie clip as the movie plays.
  31.     function startDrag(target, lock, left, top, right, bottom)           // Makes the target movie clip draggable while the movie is playing. Only one movie clip can be dragged at a time.
  32.     function stopAllSounds()                                             // Stops all sounds currently playing in a SWF file without stopping the playhead.
  33.     function String(expression)                                          // Returns a string representation of the specified parameter.
  34.     function substring(string, index, count)                             // Extracts part of a string.
  35.     function targetPath(movieClipObject)                                 // Returns a string containing the target path of movieClipObject.
  36.     function toggleHighQuality()                                         // Turns anti-aliasing on and off in Flash Player.
  37.     function unescape(x)                                                 // Evaluates the parameter x as a string, decodes the string from URL-encoded format (converting all hexadecimal sequences to ASCII characters), and returns the string.
  38.     function unloadMovie(target)                                         // Removes a movie clip that was loaded by means of loadMovie() from Flash Player.
  39.     function unloadMovieNum(level)                                       // Removes a movie that was loaded by means of loadMovieNum() from Flash Player.
  40.     function updateAfterEvent()                                          // Updates the display (independent of the frames per second set for the movie) when you call it within an onClipEvent() handler or as part of a function
  41.     function Array(element)                                              // Creates a new, empty array or converts specified elements to an array.
  42.     function Boolean(expression)                                         // Converts the parameter expression to a Boolean value.
  43.     function chr(number)                                                 // Converts ASCII code numbers to characters.
  44.     function clearInterval(intervalID)                                   // Clears a call to setInterval().
  45.     function duplicateMovieClip(target, newname, depth)                  // Creates an instance of a movie clip while the SWF file is playing.
  46.     function escape(expression)                                          // Converts the parameter to a string and encodes it in a URL-encoded format, where all nonalphanumeric characters are escaped with % hexadecimal sequences.
  47.     function eval(expression)                                            // Accesses variables, properties, objects, or movie clips by name.
  48.     function fscommand(command, parameters)                              // Allows the SWF file to communicate with either Flash Player or the program hosting Flash Player, such as a web browser.
  49.     function getProperty(my_mc, property)                                // Returns the value of the specified property for the movie clip my_mc.
  50.     function getTimer()                                                  // Returns the number of milliseconds elapsed since the SWF file started playing.
  51.     function getVersion()                                                // Returns a string containing Flash Player version and platform information.
  52.     function int(value)                                                  // Converts a decimal number to the closest integer value.
  53.     function isFinite(expression)                                        // Evaluates expression and returns true if it is a finite number or false if it is infinity or negative infinity.
  54.     function isNaN(expression)                                           // Evaluates the parameter and returns true if the value is not a number (NaN), indicating the presence of mathematical errors.
  55.     function length(expression, variable)                                // String function; Returns the length of the specified string or variable name.
  56.     function loadMovie(url, target, method)                              // Loads a SWF or JPEG file into Flash Player while the original SWF file is playing.
  57.     function loadMovieNum(url, level, variables)                         // Loads a SWF or JPEG file into a level in Flash Player while the originally loaded SWF file is playing.
  58. }
  59.